#ifndef MAINPAGEWINDOW_H
#define MAINPAGEWINDOW_H

#include <QMainWindow>
#include "regform.h"
#include "attendanceruleform.h"
#include "employeequeryform.h"
#include "checkinrecordqueryform.h"
#include "employeeleaveform.h"

namespace Ui {
class MainPageWindow;
}

class MainPageWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainPageWindow(QWidget *parent = nullptr);
    ~MainPageWindow();
    void setBtnCheacked(bool flag);
    //    void setwidget_Management

private slots:
    void on_btnEmployeeManage_clicked(bool checked);

    void on_btnAttendanceSetting_clicked(bool checked);

    void on_btnEmployeeAdd_clicked(bool checked);

    void on_btnEmployeeQuery_clicked(bool checked);

    void on_btnCheckInRecordQuery_clicked(bool checked);

    void on_btnPunchCardManagement_clicked(bool checked);

    void on_btnEmployeeLeave_clicked(bool checked);

    void on_commandLinkButton_clicked();

private:
    Ui::MainPageWindow *ui;
    regForm * regform;
    attendanceruleForm *attendanceruleform;
    EmployeeQueryForm * employeeQueryForm;
    CheckInRecordQueryForm * checkInRecordQueryForm;
    EmployeeLeaveForm *employeeLeaveForm;
    QWidget *mainWindow;
    QWidget* currentActiveForm;
    void switchForm(QWidget* newForm);
};

#endif // MAINPAGEWINDOW_H
